﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Automation.Protocols.Model
{
    public class TestCase
    {
        private string _id;
        private string _name;
        private string _parameters;
        private string _behavior;
        private string _state;

        public string ID
        {
            get { return _id; }
            set
            {
                _id = value;
            }
        }

        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
            }
        }

        public string Parameters
        {
            get { return _parameters; }
            set
            {
                _parameters = value;
            }
        }

        
        public string Behavior
        {
            get { return _behavior; }
            set
            {
                _behavior = value;
            }
        }

  
        public string State
        {
            get { return _state; }
            set
            {
                _state = value;
            }
        }


        public bool isValid()
        {
            if (_id == null || _name == null || _behavior == null || _state == null)
                return false;
            if (_id.Equals("") || _name.Equals("") || _behavior.Equals("") || _state.Equals(""))
                return false;
            //Standardlize:
            if (_parameters == null)
                _parameters = "";
            _id = _id.Replace(" ", "");
            _name = _name.Replace(" ", "");
            _behavior = _behavior.Replace(" ", "");
            _state = _state.Replace(" ", "");
            _parameters = _parameters.Replace(" ", "");
            return true;
        }
    }
}
